
<%@ include file="/common/taglibs.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Registered Users</title>
<!-- 
	<script type="text/javascript" src="<c:url value='/scripts/ghostPlay/play.js'/>"></script>
	 -->

</head>
<body>

	<h5>Registered Users List.</h5>
	<br></br>
	<table border='1' align=center width="100%"
		style="background-color: #d7e9f5; margin-left: ">
		<tr>
			<td><font color="green"><b>EmailId</b></font></td>		
			<td><font color="green"><b>UserName</b></font></td>
			<td><font color="green"><b>PostCode</b></font></td>
			<td><font color="green"><b>Channel</b></font></td>
			<td><font color="green"><b>IP</b></font></td>
		</tr>
		<c:forEach var="user" items="${userList}">
			<tr>
				<td>${user.email }</td>
				<td>${user.username}</td>
				<td>${user.postcode }</td>
				<td>${user.channel }</td>
				<td>${user.ipaddress }</td>
			</tr>
		</c:forEach>
	</table>
	<br />
	<h5>New Users - Register here.</h5>

	<br></br>
	<h3><font color="red">${error}</font></h3>
	<h3><font color="green">${message}</font></h3>
	
	<form:form commandName="userData" method="post" id="userRegistrationForm" name="userRegistrationForm"
		action="${ctx}/register/new.htm">
		<table>
			<tr>
				<td width="50%">Email</td>
				<td><input type="text" name="email" id="email" maxlength="50"
					size="30" value="${userData.email}"></input></td>
			</tr>		
			<tr>
				<td width="50%">UserName</td>
				<td><input type="text" name="username" id="username"
					maxlength="50" size="30" value="${userData.username}"></input></td>
			</tr>
			<tr>
				<td width="50%">PostCode</td>
				<td><input type="text" name="postcode" id="postcode"
					maxlength="10" size="10" value="${userData.postcode}"></input></td>
			</tr>
			<tr>
				<td width="50%">Channel</td>
				<td><input type="text" name="channel" id="channel"
					maxlength="50" size="30" value="${userData.channel}"></input></td>
			</tr>
			<tr>
				<td width="50%">IP Address</td>
				<td><input type="text" name="ipaddress" id="ipaddress"
					maxlength="50" size="30" value="${userData.ipaddress}"></input></td>
			</tr>
			<tr>
				<td width="50%"></td>
				<td><input type="submit" name="Register" id="register"></input><input
					type="reset" name="reset" id="reset"></input></td>
			</tr>
		</table>


	</form:form>
</body>
</html>
